#include "conn.hpp"

int main(){
    StringUtil::UrlParam params;
    MYSQL* conn;
    Init(params,conn); 
    
    //根据业务需要进行计算，此处是返回
    string user = params["user"];
    stringstream ss;
    string output;

    if(user == "admin")
        Action::ActionAdmin(conn,output);
    else 
        Stay(conn,output,params,user);            

    ss << output;
    HttpResponse(ss.str());
    return 0;
}
